<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}
<div class="subnav" style="margin-bottom:20px;">
    <a href="">首页</a> &gt; <a href="">交易管理</a> &gt; <a href="">交易记录</a>
</div>
<div class="main-inner">
    <div class="x-body">
    	<form name="searchform" class="layui-form" action="?" method="get" >
            <input type="hidden" value="{$m}" name="m">
            <input type="hidden" value="{$c}" name="c">
            <input type="hidden" value="{$a}" name="a">
            <div class="tablefilter">
            	<em>摘要</em>
                <div class="left margin-l10">
                    <select name="upuid">           	
                        <option value="0">全部摘要</option>
                        <option value="order_add">下单</option>
                        <option value="cash">提现</option>
                        <option value="cunti_1,cunti_2,cunti_3">人工存款</option>
                        <option value="cunti_4,cunti_5">人工提出</option>
                    </select>
                </div>
            	<div class="tableFilterInput">
                    <em>会员账号</em><input type="text" name="username">
                </div>
                <div class="tableFilterInput">
                    <em>流水号</em><input type="text" name="lkey">
                </div>
                <div class="tableFilterInput">
                    <em>开始时间</em><input type="text" class="datetimepicker8" name="begintime">
                </div>
                <div class="tableFilterInput">
                    <em>结束时间</em><input type="text" class="datetimepicker8" name="endtime">
                </div>
                <div class="tableButton">
                    <input type="submit" name="search" class="layui-btn" value="查询">
                </div>
            </div>
    	</form>
    </div>
    	
	<table class="layui-table">
		<thead>
			<tr>
				<th>会员账号</th>
				<th>流水号</th>
				<!-- <th>摘要</th> -->
				<th>收入金额</th>
				<th>支出金额</th>
				<th>可用余额</th>
				<th>时间</th>
				<th>备注</th>
			</tr>
		</thead>
		<tbody id="datalist">
            {loop $data as $k=>$v}
    			<tr>
    				<td>{$v['username']}</td>
    				<td>{$v['lkey']}</td>
    				<!-- <td>普通投注</td> -->
    				<td>
                        {if $v['balance'] > $v['balance_old']}
                            {$v['money']}
                        {else}
                            ---
                        {/if}
                    </td>
    				<td>
                        {if $v['balance'] > $v['balance_old']}
                            ---
                        {else}
                            {$v['money']}
                        {/if}
                    </td>
    				<td>{$v['total']}</td>
    				<td>{date("Y-m-d H:i:s",$v['dateline'])}</td>
    				<td>{$v['notes']}</td>
    			</tr>
            {/loop}
		</tbody>
	</table>
	<div class="layui-clear">
		<div id="pages" class="layui-laypage right">{$multi}</div>		
	</div>
</div>
<script type="text/javascript" src="static/js/datetime.js"></script>
{template index/footer}